#ifndef __TELEINFO_H__
#define __TELEINFO_H__

#include "info.h"
#include <stdbool.h>

struct Teleinfo
{
    Info tele[20];
    int size;
};

typedef struct Teleinfo TeleInfo;

// 函数声明
void InitTeleInfo(TeleInfo *p);
void AddInfo(TeleInfo *p, const char *name, const char *tele);
void RemoveInfo(TeleInfo *p, void *target, bool (*cmpFunc)(const Info *, const void *));
const Info* FindInfo(const TeleInfo *p, void *target, bool (*cmpFunc)(const Info *, const void *));
void DisplayAll(const TeleInfo *p);


#endif